﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CodeBuilderBase;

namespace CodeBuilder2009
{
    public partial class FrmOption : Form
    {
        public FrmOption()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Operate.SetApp("DAlFront35", this.txtDAlFront35.Text);
            Operate.SetApp("HtmlFront35", this.txtHtmlFront35.Text);
            Operate.SetApp("LinqSearchObjectBehind35", this.txtLinqSearchObjectBehind35.Text);
            Operate.SetApp("LinqOperateClass35", this.txtLinqOperateClass35.Text);
            Operate.SetApp("Conn", this.txtConnString.Text);
            this.Dispose(true);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Dispose(true);
        }

        private void FrmOption_Load(object sender, EventArgs e)
        {
            this.txtDAlFront35.Text = Operate.GetApp("DAlFront35");
            this.txtHtmlFront35.Text = Operate.GetApp("HtmlFront35");
            this.txtLinqSearchObjectBehind35.Text = Operate.GetApp("LinqSearchObjectBehind35");
            this.txtLinqOperateClass35.Text = Operate.GetApp("LinqOperateClass35");
            this.txtConnString.Text = Operate.GetApp("Conn");
        }
    }
}
